import java.io.Serializable;
import java.util.*;

/* TYPE 
1 = GET
2 = INSERT
3 = UPDATE
4 = DELETE
type = 5 //dodano plik
type = 6//zmodyfikowano plik
type = 7//usunieto plik
 */ 
 public class Message implements Serializable {
            static final long serialVersionUID = 42L;
            private int sender;
            private int type;
            private String command ;
            private LinkedList<Integer> porty;
            int key ;
            int obciazenie ;
            public static final int AWARIA = 00;
           
            public int getKey()
            {
                    return key ;
            }

            public void setPorty(LinkedList<Integer> lista)
            {

                    porty=lista;
            }

            public LinkedList<Integer> getPorty() 
            {

                    return porty;
            }

            public int getObciazenie()
            {
                    return obciazenie ;
            }
           
            public int getType()
            {
                    return type ;
            }
            public int getSender()
            {
                    return sender ;
            }
            public String getCommand()
            {
                    return command ;
            }
            public void setKey(int k)
            {
                    key = k ;
            }
            public void setType(int t)
            {
                    type = t ;
            }
            public void setSender(int s)
            {
                    sender = s ;
            }
            public void setCommand(String c)
            {
                    command = c ;
            }
            public void setObciazenie(int s)
            {
                    obciazenie = s ;
            }
    }

